export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {
        path: '/user',
        routes: [
          {
            name: 'login',
            path: '/user/login',
            component: './user/Login',
          },
        ],
      },
      {
        component: './404',
      },
    ],
  },
  {
    path: '/welcome',
    name: 'welcome',
    icon: 'smile',
    component: './Welcome',
  },
  {
    path: '/auth',
    name: '权限管理',
    icon: 'smile',
    routes: [
      {
        name: '管理员管理',
        path: '/auth/admin-management',
        component: './auth/adminManagement',
      },
      {
        name: '菜单规则',
        path: '/auth/menu-rules',
        component: './auth/menuRules',
      },
      {
        name: '角色组',
        path: '/auth/role-group',
        component: './auth/roleGroup',
      },
      {
        component: './404',
      },
    ],
  },
  {
    path: '/',
    redirect: '/welcome',
  },
  {
    component: './404',
  },
];
